@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/system/exam/userProfit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">收益列表</span>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select id="state">
                                    <option value="">请选择提现状态</option>
                                    <option value="0">待提现</option>
                                    <option value="1">审核中</option>
                                    <option value="2">打款中</option>
                                    <option value="3">已提现</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="schoolName" class="layui-input" type="text" placeholder="请输入学校名称或代码关键词/字进行搜索"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="userProfitTable" lay-filter="userProfitTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.state == 1 ){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="extract">提现</a>
    {{#  } }}
    {{#  if(d.state == 2 ){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="transfer">打款</a>
    {{#  } }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="userProfit_extract_log">提现记录</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="userProfit_log">收益记录</a>
</script>
@}